<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型之边框</title>
    <style>
        #ha {
            width: 100px;
            height: 50px;
            /* border-width 边框粗细 一般情况下都用 px*/
            border-width: 5px;
            border-style: solid;
            display: inline-block;
        }

        #haha {
            width: 100px;
            height: 50px;
            /* border-width 边框粗细 一般情况下都用 px*/
            border-width: 5px;
            border-style: dashed;
            display: inline-block;
        }

        #hahaha {
            width: 100px;
            height: 50px;
            /* border-width 边框粗细 一般情况下都用 px*/
            border-width: 5px;
            border-style: dotted;
            display: inline-block;
            border-color: pink;
            border-top: 2px dotted yellow
        }

        #hahahaha {
            width: 200px;
            height: 200px;
            border: 1px solid blue;
            border-top: 1px solid red;

        }
    </style>
</head>

<body>
    <div id="ha"></div>
    <div id="haha"></div>
    <div id="hahaha"></div>
    <div id="hahahaha"></div>

</body>

</html>